package ae.pcfc.cldos.online.common.delegate;

import org.dozer.DozerBeanMapper;

import ae.pcfc.cldos.online.common.facade.service.ServiceLocator;

/**
 * Base Delegate for all the delegates, having common dependencies for all the delegates
 * @author ammar
 *
 */
public abstract class BaseDelegate {

	protected ServiceLocator serviceLocator;
	
	protected DozerBeanMapper mapper;

	public void setServiceLocator(ServiceLocator serviceLocator) {
		this.serviceLocator = serviceLocator;
	}
	
	protected ServiceLocator getServiceLocator(){
		return serviceLocator;
	}
	
	/**
	 * @return the mapper
	 */
	public DozerBeanMapper getMapper() {
		return mapper;
	}

	/**
	 * @param mapper
	 *            the mapper to set
	 */
	public void setMapper(DozerBeanMapper mapper) {
		this.mapper = mapper;
	}
	
}
